package {
	/**
	 * ...
	 * @author Scott
	 */
	import flash.events.MouseEvent;
	import flash.net.navigateToURL;
	import flash.net.URLRequest;
	import mx.controls.Image;
	 
	public class LinkImage extends Image {
		private var linkUrl_:String;
		
		public function LinkImage() {
			super();
		}
		
		public function set linkUrl(str:String):void {
			if ((str != null) && (str != '')) {
				linkUrl_ = str;
				this.buttonMode = true;
				this.addEventListener(MouseEvent.CLICK, function ():void {
					navigateToURL(new URLRequest(linkUrl_));
				});
			}
		}
		
		public function get linkUrl():String {
			return linkUrl_;
		}
	}

}